package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName s_logs
 */
@TableName(value ="s_logs")
@Data
public class SLogs implements Serializable {
    /**
     * 日志表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 操作标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 操作内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 方法名称
     */
    @TableField(value = "methodName")
    private String methodname;

    /**
     * 操作人名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 请求类型
     */
    @TableField(value = "methodType")
    private String methodtype;

    /**
     * 返回值
     */
    @TableField(value = "methodResult")
    private String methodresult;

    /**
     * 触发时间
     */
    @TableField(value = "operTime",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 操作耗时
     */
    @TableField(value = "takeTime")
    private Long taketime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}